package com.ziyear.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ziyear.ssm.bean.User;
import com.ziyear.ssm.dao.UserDao;
import com.ziyear.ssm.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDao userDao;

	@Override
	public User login(User user) {
		User existUser = userDao.userlogin(user);
		return existUser;
	}

}
